home *** CD-ROM | disk | FTP | other *** search
/ MacFormat 1995 June / MacFormat 25.iso / Shareware City / Developers / macgzip_03b2-src / macos / README (mac sources)
Encoding:
Text File  |  1995-01-07  |  3.6 KB  |  79 lines  |  [TEXT/ttxt]

  1. •  MacGzip 0.3b2 (gzip 1.2.4) -sources-
  2.  
  3.  Think C 7.0.3 sources for MacGzip 0.3b
  4. Should compile with:
  5.     Think C 7
  6.     Think C 5.0.4
  7.     ¿MW C/C++ 1.0? (Require aditional Unix Libs. ¿Do you know where I can get them?)
  8.  
  9. •  About the sources....
  10.  
  11. MacGzip was developed mainly from two sources: gzip 1.2.4 original distribution (by Jean-loup Gailly) and the example source code from Apple's  Developer CD Series. I must mention also Timothy Murphy ("tim@maths.tcd.ie" ), whose Posix Library por Think C was used to link chmod, fstat, utime and stat (all used in gzip.c) and Quinn <quinn@cs.uwa.edu.au> (et al) for Ineternet Config Prog Kit.
  12.  
  13. (In MacGzip's readme, you can find a list of involuntary contyributions)
  14.  
  15. Part of the Apple source code comes from Snippets
  16. (Snippets are not tested by anyone, except (presumably) the author. They are NOT to be considered the final or best way to do something. They are just bits of code that the DTS engineers and others come up with and feel might be useful to developers. Think of Snippets as a "Bucket 'o Rusty Parts" that is provided for your browsing pleasure, NOT as polished examples. A Snippet should only be used in a commercial application if YOU are sure that it does what you want. )
  17. so, you can apply this to macgzip sources, too.
  18.  
  19. (In earlier versions, the mac code (and gzip.c) was really bad in some points. I think this time it is better,  but if you want to use somethig as example, check it carefully)(I'm still learning…)
  20.  
  21. You will need to make the includes from the 'Internet Config' folder accesible to your compiler (for instance, by coping the entire folder into your 'Symantec C++ for Macintosh' folder)
  22.  
  23. • The porting
  24.  
  25. The main folder contents GNU sources and documentation, as well as MacGzip project file and resources.  GNU sources has been modified. If you find some error here, probably is mine.
  26. If have used some #ifdef's in most of the changes, but not in all.
  27.  
  28. Changes:
  29.  
  30. -Standard output and error by alerts.
  31. -#define MAXSEG_64K (gzip works without this, but is required by unlzw.c in order to decompress Unix .Z files)
  32. -Add some type/creator stuff when creating files.
  33. -Insert here an there System Tasks to be nice with other applications and to update progress bar. (for example one call in the 'fill the input buffer' function)
  34. -other...
  35.  
  36. Note: Some of the command line options (-vlt) are not available just because they require aditional Macintosh interface; but using Think C console, they should work.
  37.  
  38.  
  39. The folder named 'macos' holds some files from Posix Library (from maths.tcd.ie), and the sources of the interface; they can be reused with some minor changes for any other file processing (input file + few parameters -> output file).
  40.  
  41. There are several ways in which this source could be improved; here you are some:
  42.  
  43. -MacGzip.c:
  44.      High Level Events with aditional parameters
  45. -MacErrors.c:
  46.      Calert should use varargs!
  47. -SPDCProg.c:
  48.      The string on the movable modal window could be variable
  49.        (erase string's Rect before DrawString in DrawMovable)
  50.      Event loop in SPDSystemTask does not accept new files to process
  51. -ThePrefs.c:
  52.       When an old prefs file is found, the new should be ajusted to match the old.
  53.       
  54. • Note the changes in Posix Library!
  55.  
  56. • The Song
  57.  
  58. hablar como en un susurro 
  59. que el viento se quiere llevar
  60. se agita la ciudad dormida
  61. otoño no acaba jamás
  62. no tiembles por que esté oscuro
  63. si nada nos puede pasar
  64. te he visto mover con orgullo
  65. hey vamos, enséñame más
  66.  
  67. no ver la luz serena
  68. bajando tan suave y besar
  69. andar desnudos por la arena
  70. la sangre ya llega hasta el mar
  71.  
  72. no he vuelto a jurar otra vez
  73. desde que se fue
  74. no he vuelto a quedar otra vez
  75. en paz
  76.  
  77.         Ciudad Dormida (BB sin sed)
  78.  
  79.